package com.ruoyi.test.vo;

import com.alibaba.fastjson2.JSON;
import lombok.Data;

@Data
public class WebSocketResponse {
    private String type;
    private String cid;
    private String message;
    private String toChannelName;

    // 转换为 JSON 字符串
    public String toJsonString() {
        return JSON.toJSONString(this);
    }
}
